import request from '@/utils/request'

// 查询宿舍学生关联列表
export function listStudent(query) {
  return request({
    url: '/dormitory/srs-dormitory-student/list',
    method: 'post',
    // params: query,
    data:query
  })
}

// 查询宿舍学生关联详细
export function getStudent(id) {
  return request({
    url: '/dormitory/srs-dormitory-student/' + id,
    method: 'get'
  })
}

// 新增宿舍学生关联
export function addStudent(data) {
  return request({
    url: '/system/student',
    method: 'post',
    data: data
  })
}

// 修改宿舍学生关联
export function updateStudent(data) {
  return request({
    url: '/dormitory/srs-dormitory-student/update',
    method: 'post',
    data: data
  })
}

// 删除宿舍学生关联
export function delStudent(id) {
  return request({
    url: '/system/student/' + id,
    method: 'post'
  })
}
